package com.tcoiss.message.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tcoiss.message.domain.MqTopic;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MqTopicMapper extends BaseMapper<MqTopic> {

    public List<MqTopic> pageList(@Param("offset") int offset,
                                  @Param("pagesize") int pagesize,
                                  @Param("bizId") int bizId,
                                  @Param("topic") String topic);
    public int pageListCount(@Param("offset") int offset,
                             @Param("pagesize") int pagesize,
                             @Param("bizId") int bizId,
                             @Param("topic") String topic);

    public MqTopic load(@Param("topic") String topic);

    public int add(@Param("mqTopic") MqTopic mqTopic);

    public int update(@Param("mqTopic") MqTopic mqTopic);

    public int delete(@Param("topic") String topic);

    public List<MqTopic> findAlarmByTopic(@Param("topics") List<String> topics);
}
